package com.tfswue.hql.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


@Component
@ConfigurationProperties(prefix = "app")
public class MyProperties {

    public static class Credentials {
        private String email;
        private String password;
        
        // 手动添加getter方法
        public String getEmail() {
            return email;
        }
        
        public String getPassword() {
            return password;
        }
        
        // 手动添加setter方法
        public void setEmail(String email) {
            this.email = email;
        }
        
        public void setPassword(String password) {
            this.password = password;
        }
    }

    private Credentials my1;
    private Credentials my2;
    
    // 手动添加getter方法以确保编译通过
    public Credentials getMy1() {
        return my1;
    }
    
    public Credentials getMy2() {
        return my2;
    }
    
    // 手动添加setter方法
    public void setMy1(Credentials my1) {
        this.my1 = my1;
    }
    
    public void setMy2(Credentials my2) {
        this.my2 = my2;
    }
}